package net.aynt.blog.sys;

import java.util.HashMap;
import java.util.Map;

import net.aynt.core.mvc.util.CryptUtils;

public class Constants {
	public final static String blog_article_startMonth = "2013-08";
	
	public final static String 	blog_lucene_path = "/WEB-INF";

	public final static String blog_upload_file = "attach/files/";
	
	public final static String 	blog_exception_email_hotname = "";

	public final static String blog_exception_email_name = "";
	
	public final static String 	blog_exception_email_password = "";
	
	public final static String 	blog_exception_email_to = "";

	public final static String blog_site_url = "";
	
	public static Map<String, String> EXTEND_TYPE = new HashMap<String, String>(); 
	
	static {
		EXTEND_TYPE.put("image", "gif,jpg,jpeg,png,bmp,png");
		EXTEND_TYPE.put("flash", "swf,flv");
		EXTEND_TYPE.put("media", "swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb");
		EXTEND_TYPE.put("file", "doc,docx,xls,xlsx,ppt,htm,html,txt,zip,rar,gz,bz2,war");
	}
	
	
	public final static String blog_lucene_scheduleTime = "300000";
	
	
	public final static String blog_siteConfig_about = "loveJ开源Blog";
	public final static String blog_siteConfig_contact = "LoveJ友情提示：<br/>loveJ是一个免费开源的Blog，欢迎大家推广使用。如果你对loveJ有什么建议或者意见，请联系我，我会尽快给大家回复的。";
	public final static String blog_siteConfig_icp = "蜀ICP备12001244号-1";
	public final static String blog_siteConfig_name = "loveJ";
	public final static String blog_siteConfig_url = "http://localhost:8080/blog";
	
	
	public final static String blog_user_username = "906139456@qq.com";
	public final static String blog_user_email = "906139456@qq.com";
	public final static String blog_user_nickname = "906139456@qq.com";
	public final static String blog_user_password = "306789C3080FDB22";
	public final static String blog_user_role = "127";
	public final static String blog_user_salt = "AGFBKsqTulOdthI7";
	public final static String blog_user_frozen = "0";
	//#############################################3
	public final static String ENCRYPT_MD5 = "MD5";
	
	
	public final static int SALT_LENGTH = 2 * CryptUtils.UNIT_LENGTH; 
	
	/**
	 * 站点配置
	 */
	public final static String SITE_CONFIG = "siteConfig";
	
	/**
	 * 系统配置
	 */
//	public final static String SYSTEM_CONFIG = "systemConfig";
	
	/**
	 * 登录用户
	 */
	public final static String LOGIN_USER = "user";

	/**
	 * Cookie
	 */
    public static final String COOKIE_REMEMBERME_USER_USERNAME = "lovej.cookie.rememberme";  
    
    public static final String COOKIE_REMEMBERME_USER_PASSWORD = "lovej.cookie.rememberme";
    
    //7天
    public static final int COOKIE_REMEMBERME_TIME = 60 * 60 * 24 * 7;
    
	/**
	 * 留言的访问者
	 */
    public static final String COOKIE_COMMENT_VISITOR_KEY = "lovej.cookie.visitor";
    
    /**
     * operation
     */
    public static final String OPERATION = "operation";
    
    public static final String OPERATION_SUCCESS = "success";
    
    public static final String OPERATION_FAILURE = "failure";
    
    /**
     * 评论用户
     */
    public static final String COMMENT_USER = "commentUser";
    
}
